﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Register.aspx.cs" Inherits="BaoJian.User.Register" %>
<%@ Register Src="../Control/theme/baojian/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="../Control/theme/baojian/Footer.ascx" TagName="Footer" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style>
        .bginput {
            background-image:url(images/input_bg.gif);
            background-repeat:no-repeat;
            font-family:Arial, Helvetica, sans-serif, simsun;
            font-size:12px;
            border:1px solid #8FB7D2;
            margin-left:10px;
            margin-top:6px;
            width:180px;
        }
        #regBar{
            BORDER-RIGHT: #cfcfcf 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #cfcfcf 1px solid; MARGIN-TOP: 8px; PADDING-LEFT: 2px; PADDING-BOTTOM: 2px; BORDER-LEFT: #cfcfcf 1px solid; WIDTH: 760px; PADDING-TOP: 2px; BORDER-BOTTOM: #cfcfcf 1px solid; BACKGROUND-COLOR: #f4f3f0;
        }
        #regBar DIV.title {
	PADDING-RIGHT: 6px; PADDING-LEFT: 10px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; COLOR: #5b5b5b; LINE-HEIGHT: 32px; PADDING-TOP: 0px; BACKGROUND-COLOR: #fff; TEXT-ALIGN: left
        }
        #regBar UL {
	        PADDING-RIGHT: 0px; MARGIN-TOP: 2px; PADDING-LEFT: 0px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px; BACKGROUND-COLOR: #fff; height:100%;font-weight:bold;color:#5B5B5B;
        }
        #regBar ul li.left{
            float: left; width:30%;line-height:40px;height:40px;text-align:right;
        }
        #regBar ul li.right{
            float: left; width:68%;line-height:40px;height:40px;text-align:left;
        }
        #regBar ul li span { margin-top:10px;}
    </style>
    <script  src="../Js/jsdate.js" language="javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div align="center">
            <uc1:Header ID="Header1" runat="server" />
            <div id="RegDiv" runat="server">
                <div id="regBar">
                    <div class="title">
                        用 户 注 册</div>
                    <ul>
                        <li style="text-align: left; margin-left: 80px; border-bottom: #cccccc 1px dotted;
                            line-height: 30px;">必填内容
                            <asp:Label ID="Msg" runat="server" ForeColor="Red"></asp:Label></li><li class="left">用户名</li>
                        <li class="right">
                            <asp:TextBox ID="txtName" runat="server" CssClass="bginput" MaxLength="20"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName"
                                Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                            </li><li class="left">
                                    密码</li>
                        <li class="right">
                            <asp:TextBox ID="txtPass" runat="server" CssClass="bginput" MaxLength="20" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPass"
                                Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></li><li class="left">
                                    重复密码</li>
                        <li class="right">
                            <asp:TextBox ID="txtPass2" runat="server" CssClass="bginput" MaxLength="20" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPass2"
                                Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator><asp:CompareValidator
                                    ID="CompareValidator1" runat="server" ControlToCompare="txtPass" ControlToValidate="txtPass2"
                                    Display="Dynamic" ErrorMessage="两次密码不一致"></asp:CompareValidator></li><li class="left">
                                        电子邮箱</li>
                        <li class="right">
                            <asp:TextBox ID="txtEMail" runat="server" CssClass="bginput" MaxLength="100"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtEMail"
                                Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator>
                                <asp:Label ID="Label1"
                                    runat="server" ForeColor="Red" Text="取回密码使用" ></asp:Label></li>
                    </ul>
                    <ul>
                        <li style="text-align: left; margin-left: 80px; border-bottom: #cccccc 1px dotted;
                            line-height: 30px;">选填内容</li>
                        <li class="left">真实姓名</li>
                        <li class="right">
                            <asp:TextBox ID="txtUname" runat="server" CssClass="bginput" MaxLength="20"></asp:TextBox></li>
                        <li class="left">出生日期</li>
                        <li class="right">
                            <input type="text" id="date1" name="date1" class="bginput" readonly runat="server">
                              <a href="#SelectDate" onclick="SD(this,'document.all.date1')">
                                 <img border="0" src="../images/date_picker.gif" width="30" height="19"></a>
                          </li>
                          <li  class="left">您的性别&nbsp;</li>
                          <li class="right">&nbsp;<asp:RadioButtonList ID="rblSex"
                                        runat="server" CellPadding="2" CellSpacing="2" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                        <asp:ListItem Selected="True" Value="0">男</asp:ListItem>
                                        <asp:ListItem Value="1">女</asp:ListItem>
                                    </asp:RadioButtonList></li>
                        <li style="float: none; line-height: 40px; text-align: left;
                            padding-left: 180px;">
                            <asp:Button ID="btnSave" runat="server" Text="注  册" CssClass="bginput" Height="30px"
                                Font-Bold="True" OnClick="btnSave_Click" /></li>
                    </ul>
                    <div style="height: 30px; background-color: #fff">
                    </div>
                </div>
            </div>
            <div id="RegFinished" runat="server" visible="true">
                <asp:Literal ID="Message" runat="server"></asp:Literal>
            </div> 
            <uc2:Footer ID="Footer1" runat="server" />
        </div>
    </form>
</body>
</html>
